#region head comment
/*
Code generate by YhdSdkTool.
email:starpeng@vip.qq.com
2013-01-21 23:00:56:949 +08:00
*/
#endregion

using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace YhdSdk.Domain.Product
{
    /// <summary>
    /// 系列子品基本属性信息(colorItemId:colorName:sizeItemId:productMarketPrice:productSalePrice: virtualStockNum:outerId:isMainProduct)eg:21082:蓝色:21168:400:380:100:outerId10:1
    /// </summary>
    [Serializable]
    public class SerialAttributesInfo : YhdObject
    {
        /// <summary>
        /// 外部产品编码(不超过30个字符)
        /// </summary>
        [XmlElement("colorItemId")]
        public Int64 ColorItemId
        {
            get;
            set;
        }

        /// <summary>
        /// 是否主产品（商品详情页默认显示的商品，最多只允许设置一个主产品）
        /// </summary>
        [XmlElement("isMainProduct")]
        public Nullable<Int32> IsMainProduct
        {
            get;
            set;
        }

        /// <summary>
        /// 自定义颜色名称
        /// </summary>
        [XmlElement("colorName")]
        public String ColorName
        {
            get;
            set;
        }

        /// <summary>
        /// 颜色属性项ItemId
        /// </summary>
        [XmlElement("colorAttributeItemId")]
        public Nullable<Int64> ColorAttributeItemId
        {
            get;
            set;
        }

        /// <summary>
        /// 尺码属性项ItemId
        /// </summary>
        [XmlElement("sizeAttributeItemId")]
        public Nullable<Int64> SizeAttributeItemId
        {
            get;
            set;
        }

        /// <summary>
        /// 市场价(最多两位小数)
        /// </summary>
        [XmlElement("productMarketPrice")]
        public Nullable<Double> ProductMarketPrice
        {
            get;
            set;
        }

        /// <summary>
        /// 销售价(不能大于市场价,最多两位小数)
        /// </summary>
        [XmlElement("productSalePrice")]
        public Nullable<Double> ProductSalePrice
        {
            get;
            set;
        }

        /// <summary>
        /// 库存(大于或等于0)
        /// </summary>
        [XmlElement("virtualStockNum")]
        public Nullable<Int64> VirtualStockNum
        {
            get;
            set;
        }

    }
}
